#!/bin/bash

# Unzip the IPEDS raw files
cd Data/IPEDS/Files
unzip files.zip
# Build IPEDS.dta
cd ../../../Code
stata -b IPEDS.do
cd ..

# Unzip the Title IV raw files
cd Data/TitleIV/Files
unzip files.zip
# Build TitleIV.dta
cd ../../../Code
stata -b TitleIV.do
cd ..

# Merge IPEDS and TitleIV data together
stata -b RFS_OUP_1_merge.do

# Generate the figures and tables
mkdir Tables
mkdir Figures
stata -b RFS_OUP_1.do
julia RFS_OUP_1_Fig9.jl
